home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
icon
/
vts.lha
/
vts
/
variant.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-30
|
1KB
|
48 lines
#include "itran/tree.h"
nodeptr cat(), q();
static int first = 1;
nodeptr proc(u,w,x,y)
nodeptr u, w, x, y;
{
if (first == 1) {
first = 0;
return cat(10,q("procedure program()\n"),u,q("\n"),w,q("\n"),
q("\n"),x,q("Reduce_("),y,q(")\nEnd_()\n"));
}
return cat(8,u,q("\n"),w,q("\n"),x,q("\nReduce_("),y,q(")\nEnd_()\n"));
}
nodeptr recrd(w,y)
nodeptr w, y;
{
if (first == 1) {
first = 0;
return cat(5,q("procedure program()\nRecord_(\""),w,q("\","),
y,q(")\n"));
}
return cat(5,q("Record_(\""),w,q("\","),y,q(")\n"));
}
nodeptr globl(z)
nodeptr z;
{
if (first == 1) {
first = 0;
return cat(3,q("procedure program()\nGlobal_("),z,q(")\n"));
}
return cat(3,q("Global_("),z,q(")\n"));
}
nodeptr link(z)
nodeptr z;
{
if (first == 1) {
first = 0;
return cat(3,q("procedure program()\nLink_(\""),z,q("\")\n"));
}
return cat(3,q("Link_(\""),z,q("\")\n"));
}